var webpack = require('webpack');
module.exports = {
  entry: {
    index: './src/js/index.js',
    tabReact: './src/js/tabReact.js',
    tabReactRedux: './src/js/tabReactRedux.js',
    counter: './src/js/counter.js',
    demoReactReduxRoute: './src/js/demoReactReduxRoute.js'
  },
  output: {
    path: './build',
    filename: '[name].js'
  },
  module: {
    loaders: [
      { test: /.css$/, loader: 'style!css' },
      {
        test: /.js$/,
        exclude: /node_modules/,
        loader: 'babel',
        query:
        {
          presets:['es2015','stage-0','react']
        }
      }
    ]
  },
  resolve:{
      extensions:['','.js','.json']
  },
  devtool: 'source-map',
  plugins: [
    new webpack.NoErrorsPlugin()
  ]
};
